#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "OLED.h"
#include "HC05.h"

uint8_t RxSTA = 1;
char RxData[100] = "0";

int main(void)
{
	OLED_Init();
	HC05_Init();
	OLED_ShowString(1, 1, "RxData:");
	OLED_ShowString(2, 1, RxData);
	
	while (1)
	{
		HC05_GetData(RxData);
		if (RxSTA == 0)
		{
			OLED_Clear();
			OLED_ShowString(1, 1, "RxData:");
			OLED_ShowString(2, 1, RxData);
			RxSTA = 1;
		}
	}
}
